package com.august.shop.search.vo;

import lombok.Data;

import java.util.List;

@Data
public class SearchParam {

    private String keyword; // 全文匹配关键字

    private Long catalog3Id; // 三级分类id

    /**
     * saleCount_asc/desc
     * skuPrice_asc/desc
     * hotScore_asc/desc
     */
    private String sort; // 排序

    /**
     * 过滤条件
     * hasStock,skuPrice,brandId,catalog3Id,attrs
     * hasStock=0/1
     * skuPrice=1_500/_500/500_
     * brandId=1
     * attrs=2_5寸:6寸
     */
    private Integer hasStock; // 是否只显示有货 0 无库存 1 有库存

    private String skuPrice; // 价格区间

    private List<Long> brandId; // 品牌id

    private List<String> attrs; // 规格属性

    private Integer pageNum = 1; // 页码

    private String _queryString; // 查询字符串

}
